﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Web;

namespace MvcSystemsCommander.Extensions.Security
{
    public class MSCPrincipal : IMSCPrincipal
    {
        public int UserId { get; set; }

        public IIdentity Identity { get; private set; }
        public bool IsInRole(string role) { return false; }

        public MSCPrincipal(string nUsername, MSCIdentityAuthenticationType nType)
        {
            this.Identity = new MSCIdentity(nUsername, nType);
        }
    }
}